package com.ukao.cashregister.bean;

import com.ukao.cashregister.utils.CheckUtils;

import java.util.List;

/**
 * Created by ukaodev on 2017/11/20.
 */

public class SummaryBean  extends  BaseBean<SummaryBean> {



        /**
         * totalAmt : 1676090
         * fee : 0
         * payList : [{"amount":0,"payMethodText":"退款","payMethod":-1,"fee":0,"cnt":19},{"amount":141260,"payMethodText":"现金","payMethod":2,"fee":0,"cnt":4},{"amount":517630,"payMethodText":"会员卡余额","payMethod":3,"fee":0,"cnt":5},{"amount":1017200,"payMethodText":"银联卡","payMethod":7,"fee":0,"cnt":2}]
         */

        private int totalAmt;
        private int fee;
    private int   refundAmt;
        private List<PayListBean> payList;

        public int getTotalAmt() {
            return totalAmt;
        }

        public void setTotalAmt(int totalAmt) {
            this.totalAmt = totalAmt;
        }

        public int getFee() {
            return fee;
        }

        public void setFee(int fee) {
            this.fee = fee;
        }

        public List<PayListBean> getPayList() {
            return payList;
        }

        public void setPayList(List<PayListBean> payList) {
            this.payList = payList;
        }


    public int getRefundAmt() {
        return refundAmt;
    }

    public static class PayListBean {
            /**
             * amount : 0
             * payMethodText : 退款
             * payMethod : -1
             * fee : 0
             * cnt : 19
             */

            private int amount;
            private String payMethodText;
            private int payMethod;
            private int fee;
            private int cnt;

            public int getAmount() {
                return amount;
            }

            public void setAmount(int amount) {
                this.amount = amount;
            }

            public String getPayMethodText() {
                return CheckUtils.isEmptyString(payMethodText);
            }

            public void setPayMethodText(String payMethodText) {
                this.payMethodText = payMethodText;
            }

            public int getPayMethod() {
                return payMethod;
            }

            public void setPayMethod(int payMethod) {
                this.payMethod = payMethod;
            }

            public int getFee() {
                return fee;
            }

            public void setFee(int fee) {
                this.fee = fee;
            }

            public int getCnt() {
                return cnt;
            }

            public void setCnt(int cnt) {
                this.cnt = cnt;
            }
        }

}
